package com.zuxia.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zuxia.dao.IRecruitDao;
import com.zuxia.entity.Recruit;
import com.zuxia.service.IRecruitService;
@Service
@Transactional
public class RecruitService implements IRecruitService{
	@Autowired
	private IRecruitDao recdao;
	@Override
	public List<Recruit> selectRecruit(int pageNow, String yname, int pageSize) {
		// TODO Auto-generated method stub
		return recdao.selectRecruit(pageNow, yname, pageSize);
	}

	@Override
	public int recsize() {
		// TODO Auto-generated method stub
		return recdao.recsize();
	}

	@Override
	public void delrec(Recruit recruit) {
		// TODO Auto-generated method stub
		recdao.delrec(recruit);
	}

	@Override
	public void addrec(Recruit recruit) {
		// TODO Auto-generated method stub
		recdao.addrec(recruit);
	}

	@Override
	public Recruit findupdateRecruit(Recruit recruit) {
		// TODO Auto-generated method stub
		return recdao.findupdateRecruit(recruit);
	}

	@Override
	public void updrec(Recruit recruit) {
		// TODO Auto-generated method stub
		recdao.updrec(recruit);
	}

}
